package com.wenhai.spring.event;

import org.springframework.context.ApplicationEvent;

/**
 *  基于 Spring 自定义事件
 *
 * @author wenhai
 * @date   2021/4/20
 */
public class MySpringEvent extends ApplicationEvent {
    public MySpringEvent(String message) {
        super(String.format("[线程：%s]%s", Thread.currentThread().getName(), message));
    }
}
